home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / March 96 / Re selection shapes < prev    next >
Encoding:
Internet Message Format  |  1996-12-03  |  1.3 KB  |  [TEXT/ttxt]

  1. Subject:     Re: selection shapes
  2. Sent:        3/11/96 8:43 AM
  3. Received:    3/11/96 8:51 AM
  4. From:        lamiraux@apple.com
  5. Reply-To:    ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. >There are 3 different shape functions for the selection class:
  9. >
  10. >CreateSelectionFrameShape, CreateSelectionShape, & CreateSelectionOutline
  11. >
  12. >What is the purpose of each of these shapes and what should I
  13. >return?
  14. >
  15. >Thanks
  16. >
  17. >Scott Daniels
  18. >e-mail: scottdfl@aol.com
  19.  
  20. CreateSelectionFrameShape:
  21.  
  22. This is a shape that will be added to the clipboard and/or drag&drop 
  23. storage unit in the kODPropFrameShape property. This shape, if present, 
  24. will be used by the destination part in case of an embedding to set up 
  25. the frame shape of the newly created frame.
  26.  
  27. CreateSelectionShape:
  28.  
  29. This is a shape bounding your selection. It is used by ODF to hit test 
  30. your selection in FW_CSelection::IsMouseInDraggableItem. Could be the 
  31. same as CreateSelectionFrameShape.
  32.  
  33. CreateSelectionOutline
  34.  
  35. This is usually just the outline of the previous shape. The default 
  36. implementation just calls CreateSelectionShape and outline it
  37.  
  38.  
  39. I agree that the naming used could be better but all three methods have 
  40. to do with selection, shape, and creation. It is very hard to find a good 
  41. name.
  42.  
  43. Henri Lamiraux
  44. ODF Team
  45.